home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Leonardo the Inventor
/
Leonardo The Inventor (93026)(Broderbund)(Riverdeep)(2004).iso
/
LEOWINMV
/
SHARED.DIR
/
03145_Script_MPEG
< prev
next >
Wrap
Text File
|
1996-04-01
|
2KB
|
70 lines
-- -----------------------------------------------------------
-- Handler goMPegTime goes to the designated mpeg movie to
-- play the mpeg quicktime.
on goMPegTime
go movie "MPEG.dir"
end
-- -----------------------------------------------------------
-- Handler playMpeg returns to the menu frame of the current
-- invention.
on returnFromMPegTime
global currentInvention
set inventionMovie = getInventionMovieName (currentInvention)
go frame currentInvention && "menu" of movie inventionMovie
end
-- -----------------------------------------------------------
-- Handler playMpeg
on playMpeg
global currentInvention
set whichFile = currentInvention & ".mpg"
if (the machineType = 256) then
playMpegPC(whichFile)
else
playMpegMAC(whichFile)
end if
end
-- -----------------------------------------------------------
-- Handler playMpegPC
on playMpegPC whichFile
waitCursor
set fullFileName = the pathName & "MPegA\" & whichFile
set mciCode = "open" && fullFileName && "alias mpegMovie style popup"
mci mciCode
mci "where mpegMovie window max"
set resultCode = the result
mci "put mpegMovie window at" && resultCode
mci "window mpegMovie state show"
-- mci "open" && whichSound && "type waveaudio alias mpegSound"
-- mci "play mpegSound"
mci "play mpegMovie from 0 wait"
mci "close mpegMovie"
-- mci "close sound"
normalCursor
end
-- -----------------------------------------------------------
-- Handler playMpegMac
on playMpegMAC whichFile
waitCursor
set fullFileName = the pathName & "MPegA:" & whichFile
alert "code not ready to play mpeg on the mac"
normalCursor
end